//
//  Utility.h
//  AppFrameWork
//
//  Created by Le Anh Tai on 7/21/13.
//  Copyright (c) 2013 Le Anh Tai. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UIConstants.h"

@interface Utility : NSObject

+ (CGFloat)estimateTimeWithDis:(CGFloat) dis andVelocity:(CGFloat) vel;
+ (NSString*)stringCurrencyForInteger:(NSInteger)value;

+ (void) showLoading:(UIView*)vw withMsg:(NSString*)msg;
+ (void) hideLoading:(UIView*)vw;
+ (void) showInfoMsg:(NSString*)msg inView:(UIView*)vw;
+ (NSString*)makeChangedString:(CGFloat)value preValue:(CGFloat)preValue;
+ (UILabel*)createLabelWithFont:(UIFont*)font;
+ (id)getObject:(NSArray*)objects atIndex:(NSInteger)index;
+ (NSString*)getDateFromString:(NSString*)strDate inputFormat:(NSString*)inputFormat outputFormat:(NSString*)outputFormat;
+ (float)convertStringToFloat:(NSString *)value;
+ (BOOL)isDate:(NSDate*)date1 ssGreaterOrEqualDate:(NSDate*)date2;
+ (CGSize)getSizeOfString:(NSString*)string font:(UIFont*)font width:(CGFloat)width;
+ (UIImage* )setBackgroundImageByColor:(UIColor *)backgroundColor withFrame:(CGRect )rect;

+(NSInteger)offsetTopForViewController;
@end
